import request from '@/utils/requests.js'

// 查询文章的评论
export function listCommentsOfArticle(articleId, numOfPage) {
  return request({
    method: 'get',
    url: `/comment/list/${articleId}/${numOfPage}`
  })
}

export function submitComment(comment) {
  return request({
    url: `/comment/insert`,
    method: 'post',
    data: comment
  })
}

// 查询更多的评论
export function listMoreComment(articleId,commentId,num) {
  return request({
    url: `/comment/list/${articleId}/${commentId}/${num}`,
    method: 'get'
  })
}
